package com.example.springboot.security.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @desc
 * @Author wangsh
 * @date 2018/6/14 23:03
 */
@Configuration
public class WebmvcConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		//登陆访问login时，跳转到login.html页面
		registry.addViewController("/login").setViewName("/login");
	}
}
